package com.mvp.shq.washer.ui.shop.order.refund;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * Created by westing on 2017/10/11.
 */

public class Model implements RefundConstract.Model {
    @Override
    public Observable<BaseResult<String>> submitRefund(String token, String userId, String orderId, String receiveStatus, String refundReason, Map<String, RequestBody> maps) {
        return ShopApi.getInstance().service
                .submitRefund(token,userId,orderId,receiveStatus,refundReason,maps)
                .compose(RxSchedulers.io_main());
    }
}
